import React, { Component } from 'react';

//封装一个高阶组件(函数), 作用: 将多个组件公用的逻辑封装起来.
export function hoverCom( Com){
    return class Index extends Component {
        render() {
            return (
                <div style={{cursor:'pointer'}}>
                    <Com />
                </div>
            );
        }
    }
}




